package hl.model;
// Generated 2018-5-24 3:29:24 by Hibernate Tools 4.3.5.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TSalary generated by hbm2java
 */
@Entity
@Table(name = "t_salary", catalog = "matcha_gym")
public class TSalary implements java.io.Serializable {

	private Long pkSalary;
	private TCoach TCoach;
	private TStuff TStuff;
	private String date;
	private Integer cash;
	private Date cdatetime;

	public TSalary() {
	}

	public TSalary(TCoach TCoach, TStuff TStuff, String date, Integer cash, Date cdatetime) {
		this.TCoach = TCoach;
		this.TStuff = TStuff;
		this.date = date;
		this.cash = cash;
		this.cdatetime = cdatetime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "PK_SALARY", unique = true, nullable = false)
	public Long getPkSalary() {
		return this.pkSalary;
	}

	public void setPkSalary(Long pkSalary) {
		this.pkSalary = pkSalary;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PK_COACH")
	public TCoach getTCoach() {
		return this.TCoach;
	}

	public void setTCoach(TCoach TCoach) {
		this.TCoach = TCoach;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PK_STUFF")
	public TStuff getTStuff() {
		return this.TStuff;
	}

	public void setTStuff(TStuff TStuff) {
		this.TStuff = TStuff;
	}

	@Column(name = "DATE", length = 32)
	public String getDate() {
		return this.date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	@Column(name = "CASH")
	public Integer getCash() {
		return this.cash;
	}

	public void setCash(Integer cash) {
		this.cash = cash;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CDATETIME", length = 19)
	public Date getCdatetime() {
		return this.cdatetime;
	}

	public void setCdatetime(Date cdatetime) {
		this.cdatetime = cdatetime;
	}

}
